home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_objc.idb / usr / freeware / include / cakit / term.h.z / term.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.2 KB  |  80 lines

  1.  
  2. /*
  3.  * Computer Algebra Kit (c) 1993,98 by Comp.Alg.Objects.  All Rights Reserved.
  4.  * $Id: term.h,v 1.1.1.1 1999/03/22 21:48:43 stes Exp $
  5.  */
  6.  
  7. #ifndef __CATERM_HEADER__
  8. #define __CATERM_HEADER__
  9.  
  10. #include "cobject.h"
  11.  
  12. @interface Term : CAObject
  13. {
  14.   id scalarZero;
  15.   id coefficient;
  16.   id symbol;
  17.   int exponent;
  18. }
  19.  
  20. + scalar:aScalar symbol:aSymbol exponent:(int)anExponent;
  21. + coefficient:aCoefficient symbol:aSymbol exponent:(int)anExponent;
  22. - copy;
  23. - deepCopy;
  24. - clear;
  25.  
  26. - scalarZero;
  27. - coefficient;
  28. - symbol;
  29. - (int) exponent;
  30. - (int) degree;
  31. - (unsigned) hash;
  32. - (BOOL) isEqual:b;
  33. - (int) compareExponents:b;
  34.  
  35. - (int) intValue;
  36. - intValue:(int)aValue;
  37. - (float) floatValue;
  38. - floatValue:(float)aValue;
  39. - asScalar;
  40. - asSymbol;
  41.  
  42. - zero;
  43. - (BOOL) isZero;
  44. - (BOOL) isOpposite:b;
  45. - negate;
  46. - double;
  47. - add:b;
  48. - subtract:b;
  49.  
  50. - one;
  51. - (BOOL) isOne;
  52. - (BOOL) isMinusOne;
  53. - square;
  54. - inverse;
  55. - multiplyScalar:b;
  56. - multiplyCoefficient:b;
  57. - multiply:b;
  58. - divideScalar:b;
  59. - divideCoefficient:b;
  60. - divide:b;
  61.  
  62. - power:(int)n;
  63. - root:(int)n;
  64. - squareRoot;
  65.  
  66. - frobenius;
  67. - frobeniusInverse;
  68.  
  69. - derive;
  70. - integrate;
  71.  
  72. - (BOOL) printsLeadingSign;
  73. - (BOOL) printsSum;
  74. - (BOOL) printsProduct;
  75. - printOn:(IOD)aFile;
  76. @end
  77.  
  78. #endif                /* __CATERM_HEADER__ */
  79.  
  80.